package date_;

import java.util.Calendar;

/**
 * @author wly
 * @version V1.0.0
 * @date 2022/12/24 10:25
 */
public class Calendar01 {
    public static void main(String[] args) {
        Calendar instance = Calendar.getInstance();
//        System.out.println(instance);
        System.out.println(instance.get(Calendar.YEAR));
        System.out.println(instance.get(Calendar.DAY_OF_MONTH));
        System.out.println(instance.get(Calendar.MONTH) + 1);
        System.out.println(instance.get(Calendar.HOUR));
    }
}
